package com.css.zfzx.data.primary.sysAttachmentInfo.repository.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * @Description: data
 * @Author: lhl
 * @CreateDate: 2021/4/1 16:51
 */
@Entity
@Table(name = "sys_attachment_info", schema = "base", catalog = "")
public class SysAttachmentInfoEntity {
    private String attachId;
    private String attachName;
    private String attachType;
    private Long attachSize;
    private String attachPath;
    private String attachMd5;
    private String isCompleted;
    private String isValid;
    private String createUser;
    private Date createTime;
    private String updateUser;
    private Date updateTime;
    private String fileDirId;

    @Id
    @Column(name = "attach_id")
    public String getAttachId() {
        return attachId;
    }

    public void setAttachId(String attachId) {
        this.attachId = attachId;
    }

    @Basic
    @Column(name = "attach_name")
    public String getAttachName() {
        return attachName;
    }

    public void setAttachName(String attachName) {
        this.attachName = attachName;
    }

    @Basic
    @Column(name = "attach_type")
    public String getAttachType() {
        return attachType;
    }

    public void setAttachType(String attachType) {
        this.attachType = attachType;
    }

    @Basic
    @Column(name = "attach_size")
    public Long getAttachSize() {
        return attachSize;
    }

    public void setAttachSize(Long attachSize) {
        this.attachSize = attachSize;
    }

    @Basic
    @Column(name = "attach_path")
    public String getAttachPath() {
        return attachPath;
    }

    public void setAttachPath(String attachPath) {
        this.attachPath = attachPath;
    }

    @Basic
    @Column(name = "attach_md5")
    public String getAttachMd5() {
        return attachMd5;
    }

    public void setAttachMd5(String attachMd5) {
        this.attachMd5 = attachMd5;
    }

    @Basic
    @Column(name = "is_completed")
    public String getIsCompleted() {
        return isCompleted;
    }

    public void setIsCompleted(String isCompleted) {
        this.isCompleted = isCompleted;
    }

    @Basic
    @Column(name = "is_valid")
    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "create_user")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_user")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Basic
    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "file_dir_id")
    public String getFileDirId() {
        return fileDirId;
    }

    public void setFileDirId(String fileDirId) {
        this.fileDirId = fileDirId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysAttachmentInfoEntity that = (SysAttachmentInfoEntity) o;
        return Objects.equals(attachId, that.attachId) &&
                Objects.equals(attachName, that.attachName) &&
                Objects.equals(attachType, that.attachType) &&
                Objects.equals(attachSize, that.attachSize) &&
                Objects.equals(attachPath, that.attachPath) &&
                Objects.equals(attachMd5, that.attachMd5) &&
                Objects.equals(isCompleted, that.isCompleted) &&
                Objects.equals(isValid, that.isValid) &&
                Objects.equals(createUser, that.createUser) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateUser, that.updateUser) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(fileDirId, that.fileDirId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(attachId, attachName, attachType, attachSize, attachPath, attachMd5, isCompleted, isValid, createUser, createTime, updateUser, updateTime, fileDirId);
    }
}
